<!DOCTYPE html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .nav {
        padding: 0.3rem;
      }
      .nav img {
        width: 1.08rem;
        height: 1.08rem;
      }
    </style>
  </head>
  <body>
    <div class="nav" id="center">
      <img src="./location.png" alt="定位">
    </div>
  </body>
  <script>
    !function (w) {
      var e = w.document,
        t = e.documentElement,
        i = 750,
        o = "orientationchange" in w ? "orientationchange" : "resize",
        a = function () {
          var cw = t.clientWidth || document.body.clientWidth;
          t.style.fontSize = cw / i * 100 / 0.187 + "px"
        };
      e.addEventListener && (w.addEventListener(o, a, !1), e.addEventListener("DOMContentLoaded", a, !1));
      e.body.style.fontSize = '0.28rem';
    }(window);
    apiready = function () {
      document.getElementById('center').onclick = function () {
        window.api.sendEvent({
          name: 'mapEvent',
          extra: {
            type: 'point'
          }
        })
      }
    }
  </script>
</html>
